feat(viz-plugins): add date formatting to pivot-table#10637
Merged
villebro merged 2 commits intoapache:masterfrom Aug 19, 2020
Merged
feat(viz-plugins): add date formatting to pivot-table#10637villebro merged 2 commits intoapache:masterfrom
villebro merged 2 commits intoapache:masterfrom
Conversation
amitmiran137
pushed a commit
to amitmiran137/incubator-superset
that referenced
this pull request
Aug 21, 2020
* master: (43 commits) feat: Getting fancier with Storybook (apache#10647) fix: dedup groupby in viz.py while preserving order (apache#10633) feat: bump superset-ui for certified tag (apache#10650) feat: setup react page with submenu for datasources listview (apache#10642) feat: add certification to metrics (apache#10630) feat(viz-plugins): add date formatting to pivot-table (apache#10637) fix: controls scroll issue (apache#10644) feat: Allow tests files in /src (plus Label component tests) (apache#10634) fix: remove duplicated params and cache_timeout from list_columns; add viz_type to list_columns (apache#10643) chore: splitting button stories into separate stories (apache#10631) refactor: remove slice level label_colors from dashboard init load (apache#10603) feat: card view bulk select (apache#10607) style: Label styling/storybook touchups (apache#10627) fix: removing unsupported modal sizes (apache#10625) feat(datasource): remove deleted columns and update column type on metadata refresh (apache#10619) improve documentation for country maps (apache#10621) chore: npm audit fix as of 2020-08-15 (apache#10613) feat: dataset REST API for distinct values (apache#10595) chore: bump react-redux to 5.1.2, whittling console noise (apache#10602) fixing console error about bad html attribute (apache#10604) ... # Conflicts: # superset-frontend/src/explore/components/ExploreViewContainer.jsx # superset-frontend/src/views/App.tsx # superset/config.py
villebro
added a commit
to preset-io/superset
that referenced
this pull request
Aug 29, 2020
* feat: make pivot table dates formattable * Bump npm packages
villebro
added a commit
to preset-io/superset
that referenced
this pull request
Sep 2, 2020
* feat: make pivot table dates formattable * Bump npm packages
6 tasks
villebro
added a commit
that referenced
this pull request
Sep 5, 2020
* feat: make pivot table dates formattable * Bump npm packages
villebro
added a commit
that referenced
this pull request
Sep 16, 2020
* feat: make pivot table dates formattable * Bump npm packages
Ofeknielsen
pushed a commit
to ofekisr/incubator-superset
that referenced
this pull request
Oct 5, 2020
* feat: make pivot table dates formattable * Bump npm packages
auxten
pushed a commit
to auxten/incubator-superset
that referenced
this pull request
Nov 20, 2020
* feat: make pivot table dates formattable * Bump npm packages
ktmud
reviewed
Feb 11, 2021
|
|
||
| def _format_datetime(value: Any) -> Optional[str]: | ||
| if isinstance(value, str): | ||
| return f"__timestamp:{datetime_to_epoch(pd.Timestamp(value))}" |
Member
There was a problem hiding this comment.
@villebro it seems this only supports unix timestamp data type, not datetime. E.g. column generated from SELECT now() or SELECT date_trunc(TIMESTAMP '2020-01-01 00:00:00') in PostgreSQL.
cccs-rc
pushed a commit
to CybercentreCanada/superset
that referenced
this pull request
Mar 6, 2024
* feat: make pivot table dates formattable * Bump npm packages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
This PR adds the possibility to format dates in the
pivot-tablechart and also fixes some bugs in the control panel. Requires bumping@superset-ui/legacy-plugin-chart-pivot-tableto0.14.21based on work in apache-superset/superset-ui#734 . Also bumps@superset-ui/legacy-preset-chart-nvd3to0.14.21to implement fix introduced in apache-superset/superset-ui#713 (ping @Mikedu1988 )AFTER
BEFORE
TEST PLAN
ADDITIONAL INFORMATION